#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <unistd.h>
#include <limits.h>
#include <assert.h>
#include <error.h>
#include "err_exit.h"

#define check_error(return_val,msg){\
	if (return_val != 0){\
		fprintf(stderr,"%s: %s\n",msg,strerror(return_val));\
		exit(-1);\
	}\
}
